import request from "@/utils/request";
//添加购物车
export const addCartGood = (data) => {
	return request({
		url: '/api/dorm/addcart',
		method: 'POST',
		data
	})
}


//修改用户信息
export const getdormGoods = (data) => {
	return request({
		url: '/api/dorm/dormGoods',
		method: 'POST',
		data
	})
}
//修改用户信息
export const getUprofile = (data) => {
	return request({
		url: '/api/userwx/profile',
		method: 'POST',
		data
	})
}
//查询申请的信息
export const getapplyOrderData = (data) => {
	return request({
		url: '/api/userwx/getapplyOrder',
		method: 'POST',
		data
	})
}

//查询实名认证的信息
export const getRealNameI = (data) => {
	return request({
		url: '/api/tools/getRealName',
		method: 'POST',
		data
	})
}

// 校园兼职详情

export const getJobDetail = (data) => {
	return request({
		url: '/api/info/jobDetail',
		method: "POST",
		data
	})
}

// 宿舍超市下单
export const setShopOrder = (data) => {
	return request({
		url: '/api/dorm/setOrder',
		method: "POST",
		data
	})
}
// 根据订单编号修改订单状态
export const updateOrder = (data) => {
	return request({
		url: '/api/front/hitch/passengerManager/updateOrderByOrderNo',
		method: "POST",
		data
	})
}
// 根据校园id进行修改
export const updateCampusAddress = (data) => {
	return request({
		url: '/api/front/hitch/passengerManager/updateCampusAddress',
		method: "POST",
		data
	})
}

// 根据校园订单编号进行修改  
export const updateCampusOrder = (data) => {
	return request({
		url: '/api/front/hitch/passengerManager/updateCampusOrder',
		method: "POST",
		data
	})
}

// 根据校园订单编号进行删除 
export const deleteCampusOrder = (data) => {
	return request({
		url: '/api/front/hitch/passengerManager/deleteCampusOrder',
		method: "POST",
		data
	})
}



// 判断当前用户是否是会员 
export const isVIPbyUserId = () => {
	return request({
		url: '/api/front/hitch/passengerManager/isVIPbyUserId',
		method: "POST"
	})
}